cask 'domainbrain' do
  version '2.0.1'
  sha256 '3e016dcc863a4abb029f65dfb9a79573dafc5d84136d483d65874b2d0f64bd9d'

  # joeworkman_downloads.s3.amazonaws.com was verified as official when first introduced to the cask
  url 'https://joeworkman_downloads.s3.amazonaws.com/DomainBrain.zip'
  appcast "https://domainbrainapp.com/appcast_v#{version.major}.xml"
  name 'DomainBrain'
  homepage 'https://domainbrainapp.com/'

  auto_updates true

  app 'DomainBrain.app'

  zap trash: [
               '~/Library/Application Support/DomainBrain',
               '~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.onebuttonmouse.domainbrain2.sfl*',
               '~/Library/Preferences/com.onebuttonmouse.DomainBrain2.plist',
             ]
end
